﻿namespace PLCS.App.Shared.Models;

public class CacheSetting
{
    /// <summary>
    /// 工厂编码
    /// </summary>
    public string SiteNo { get; set; }

    /// <summary>
    /// 车间编码
    /// </summary>
    public string AreaNo { get; set; }

    /// <summary>
    /// 产线编码
    /// </summary>
    public string PdLineNo { get; set; }

    /// <summary>
    /// 每页显示行数
    /// </summary>
    public int PageSize { get; set; }

    /// <summary>
    /// 设备信息展现形式，0表示弹窗，1表示固定显示
    /// </summary>
    public int DisplayMode { get; set; }

    /// <summary>
    /// 是否开启路径缓存
    /// </summary>
    public int IsOpenPathCache { get; set; }

    /// <summary>
    /// 是否开启任务执行
    /// </summary>
    public int IsTaskRunning { get; set; }

    /// <summary>
    /// 是否展示logo
    /// </summary>
    public int IsShowLogo { get; set; }

    public CacheSetting()
    {
    }

    public CacheSetting(string siteNo, string areaNo, string pdLineNo, int pageSize, int displayMode, int isOpenPathCache, int isTaskRunning, int isShowLogo)
    {
        SiteNo = siteNo;
        AreaNo = areaNo;
        PdLineNo = pdLineNo;
        PageSize = pageSize;
        DisplayMode = displayMode;
        IsOpenPathCache = isOpenPathCache;
        IsTaskRunning = isTaskRunning;
        IsShowLogo = isShowLogo;
    }
}